Carbon


PBMountVol

Header: Files.h Carbon status: Supported

Mounts a volume.

OSErr PBMountVol (
    ParmBlkPtr paramBlock
);
paramBlock

A pointer to a basic FIle Manager parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

The PBMountVol function mounts the volume in the specified drive. If there are no volumes already mounted, this volume becomes the default volume. Because you specify the volume to be mounted by providing a drive number, you can use PBMountVol to mount only one volume per disk.

The PBMountVol function always executes synchronously.

The PBMountVol function opens two files needed for maintaining file catalog and file mapping information. If no access paths are available for these two files, PBMountVol fails and returns tmfoErr as its function result.

AVAILABILITY

Supported in Carbon. Not available in Carbon.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)